<script language="javascript">
	function funSearchTinhThanh(id){
		window.location = '<?=$root?>/?mod=tuyendung&ttid=' + id;
	}
	function funFormSearch(){		
			var a = document.getElementById('txtKeyword');
			window.location='<?=$root?>/?mod=tuyendung&keyword=' + a.value;
	}
</script>
<div id="filterbox">

    <div class="panel-top-right">
        <div class="panel-top-left">
            <div class="panel-top-bg"></div>
        </div>
    </div>
    <div class="panel-body">                    
         <p class="panel-header">            
             Tìm theo điều kiện            
        </p>        
        <div class="panel-sep"></div>
        <div class="panel-content">       
            <div class="header"><span>Phạm vi bán</span></div>

            <div class="body">
                <ul>
                    <li><span><a href="<?=$root?>/t-tim-kiem-tuyen-dung/tinh-thanh/1">Toàn quốc</a></span></li><li><span><a href="<?=$root?>/t-tim-kiem-tuyen-dung/tinh-thanh/4">TP. Hồ Chí Minh</a></span></li><li><span><a href="<?=$root?>/t-tim-kiem-tuyen-dung/tinh-thanh/3">Hà Nội</a></span></li>                                                     
                    <li>
                        <select name="tinhthanh" id="tinhthanh" style="width:210px;" onchange="funSearchTinhThanh(this.value)">
							<option value="-1">Các tỉnh thành khác</option>
							<?
								$rs = $db->query("SELECT * FROM ".$prefix."tinhthanh WHERE tt_maquocgia = 1 AND tt_id NOT IN(1,3,4) ORDER BY tt_ten ASC");
								while($row = $db->fetch_array($rs)){
								$tt_ten = stripslashes($row[tt_ten]);
								$tt_id = $row[tt_id];
							?>
							<option value="<?=$tt_id?>"><?=$tt_ten?></option>
							<? } ?>
						</select>
                    </li>
                </ul>

            </div>  
            
                    
                
                    <div id="filterContent_Box0" class="filterContentHolder" style="display: block;">                                
                        <div class="header">
						<span> Tìm kiếm </span>
						<br /><br />
						<center><span><input id="txtKeyword" name="txtKeyword" type="text" value="Nhập từ khóa vào đây !" onfocus="if(this.value == 'Nhập từ khóa vào đây !'){this.value='';}" onblur="if(this.value == ''){this.value = 'Nhập từ khóa vào đây !';}" style="width: 220px; height:20px; border: solid 1px #CCC; background-color: #FFFDDD;"></span></center>
						<br style="line-height:5px;"/>
						<center><span><img alt="Tìm" src="<?=$root?>/themes/images/tim.jpg" align="absbottom" style='cursor: pointer;margin-top:2px;' onclick="javascript: funFormSearch();"/></span></center>
</p></div>
</div>        
 </div> 
        <br style="line-height:1px;font-size:0px;clear:both;" />
    </div>
    <div class="panel-bottom-right">
        <div class="panel-bottom-left">
            <div class="panel-bottom-bg"></div>
        </div>
    </div>
</div>